package main

import (
	"lib/bootstrap"
)

var shutdownHandlers []func(*chan bool)

func main() {
	startApplication()
}

func startApplication() {
	bootstrap.Bootstrap(func(shutdownQueue *chan bool) {
		for _, handler := range shutdownHandlers {
			handler(shutdownQueue)
		}
	})
}
